<?php
class Core_Controller_Action extends Zend_Controller_Action {
	protected $_api;
	
	protected $_styleBaseDir = '';
	protected $_style = array ();
	
	protected $_scriptBaseDir = '';
	protected $_script = array ();
	
	public function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) {
		parent::__construct ( $request, $response, $invokeArgs );
		
		$this->_api = Zend_Registry::get ( 'api' );
		
		foreach ( $this->_style as $style )
			$this->view->headLink ()->appendStylesheet ( $this->_styleBaseDir . $style );
		
		foreach ( $this->_script as $script )
			$this->view->headScript ()->appendFile ( $this->_scriptBaseDir . $script );
	}

}